//
//  KSWhetherRefundTableViewCell.swift
//  Supermarket
//
//  Created by liuxm on 2017/9/29.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

protocol ChangeStateDelegate: NSObjectProtocol {
    func changeState(isOn: Bool)
}

class KSWhetherRefundTableViewCell: UITableViewCell {

    weak var delegate: ChangeStateDelegate?
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    @IBAction func changeState(_ sender: UISwitch) {
        self.delegate?.changeState(isOn: sender.isOn)
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
